package com.sky.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

//@Component
public class SpringTask {
    //@Scheduled(cron = "0/5 * * * * ?")
    public void taskSpring(){
        System.out.println("当前方法执行了=> "+ LocalDateTime.now());
    }
}
